﻿
using System.Collections;
using System.Collections.Generic;
using System.Net.Mime;
using System.Text;
using UGUIFW;
using UnityEngine;
using UnityEngine.UI;

public class PopuplUI : BaseUI
{
    public Text TxtName;                                //窗体显示名称
    public PopuplUI(UIInfo info) : base(info)
    {

    }
    public override void Display()
    {
        base.Display();
        TxtName = transform.Find("TxtName").GetComponent<Text>();
        RigisterButtonObjectEvent("BtnClose",
            p => CloseUI()
            );
        RigisterButtonObjectEvent("BtnOpen",
        p => ShowUI(EUIName.Popupl_UI_1)
        );

        if (ExternalData != null)
        {
            TxtName.text = ExternalData.ToString();
        }
    }

}
